package com.ruoyi.ms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ms.mapper.MsOrderMapper;
import com.ruoyi.ms.domain.MsOrder;
import com.ruoyi.ms.service.IMsOrderService;
import com.ruoyi.common.core.text.Convert;

/**
 * 妙手虾皮订单信息Service业务层处理
 * 
 * @author chdx
 * @date 2022-12-06
 */
@Service
public class MsOrderServiceImpl implements IMsOrderService 
{
    @Autowired
    private MsOrderMapper msOrderMapper;

    /**
     * 查询妙手虾皮订单信息
     * 
     * @param orderId 妙手虾皮订单信息主键
     * @return 妙手虾皮订单信息
     */
    @Override
    public MsOrder selectMsOrderByOrderId(Long orderId)
    {
        return msOrderMapper.selectMsOrderByOrderId(orderId);
    }

    /**
     * 查询妙手虾皮订单信息列表
     * 
     * @param msOrder 妙手虾皮订单信息
     * @return 妙手虾皮订单信息
     */
    @Override
    public List<MsOrder> selectMsOrderList(MsOrder msOrder)
    {
        return msOrderMapper.selectMsOrderList(msOrder);
    }

    /**
     * 新增妙手虾皮订单信息
     * 
     * @param msOrder 妙手虾皮订单信息
     * @return 结果
     */
    @Override
    public int insertMsOrder(MsOrder msOrder)
    {
        return msOrderMapper.insertMsOrder(msOrder);
    }

    /**
     * 修改妙手虾皮订单信息
     * 
     * @param msOrder 妙手虾皮订单信息
     * @return 结果
     */
    @Override
    public int updateMsOrder(MsOrder msOrder)
    {
        return msOrderMapper.updateMsOrder(msOrder);
    }

    /**
     * 批量删除妙手虾皮订单信息
     * 
     * @param orderIds 需要删除的妙手虾皮订单信息主键
     * @return 结果
     */
    @Override
    public int deleteMsOrderByOrderIds(String orderIds)
    {
        return msOrderMapper.deleteMsOrderByOrderIds(Convert.toStrArray(orderIds));
    }

    /**
     * 删除妙手虾皮订单信息信息
     * 
     * @param orderId 妙手虾皮订单信息主键
     * @return 结果
     */
    @Override
    public int deleteMsOrderByOrderId(Long orderId)
    {
        return msOrderMapper.deleteMsOrderByOrderId(orderId);
    }
}
